package com.halflife.commonsio;

import org.apache.commons.io.FileUtils;
import org.junit.Test;

import java.io.File;
import java.io.IOException;

public class FileCopy {
    @Test
    public void copyFile() throws IOException {
        File file1 = new File("/home/java/test/xdoc.rar");
        File file2 = new File("/home/java/test/xdoc1.rar");
        FileUtils.copyFile(file1,file2);
    }
}
